﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H


#include "stable.h"
#include <QMainWindow>
#include <QLabel>
#include "mTestButton1.h"
#include "mDlgTest1.h"
#include "ui_mDlgTest1.h"
#include <QTextBrowser>




namespace Ui
{
    class MainWindow;
}




class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    QLabel*         m_pLabel            = nullptr;
    QTextBrowser*   m_pQTextBrowser1    = nullptr;
    mTestButton1*   m_pTestButton1      = nullptr;
    QPushButton*    m_pToolButton1      = nullptr;
    QPushButton*    m_pToolButton2      = nullptr;
    QPushButton*    m_pToolButton3      = nullptr;
    QPushButton*    m_pToolButton4      = nullptr;
    QPushButton*    m_pToolButton5      = nullptr;
    QPushButton*    m_pToolButton6      = nullptr;


    mTestButton1*   m_pChangeLanguageButton = nullptr;
    bool            m_pbChangeToEn          = false;
    QTranslator     m_Translator;

    bool event(QEvent* event);
    bool eventFilter(QObject* pObj, QEvent* pEvent);
    void ConnectSigles();
    void ChangeLanguageTranslation();//改变语言翻译


private:
    Ui::MainWindow      *ui;
    mDlgTest1*          m_pSubUi1;
};

#endif // MAINWINDOW_H


